package com.easy.bean;

import lombok.Data;

import java.time.LocalDateTime;
/*
字段名	类型	说明	约束
donation_id	INT	捐赠ID（主键）	PRIMARY KEY, AUTO_INCREMENT
order_id	INT	关联订单ID	FOREIGN KEY REFERENCES orders(order_id)
amount	DECIMAL(10,2)	捐赠金额	NOT NULL
recipient	VARCHAR(100)	受助对象(学校/贫困户)	NOT NULL
donate_time	DATETIME	捐赠时间	DEFAULT CURRENT_TIMESTAMP
 */
@Data
public class Donation {
    private Integer donation_id;
    private Integer order_id;
    private Double amount;
    private String recipient;
    private LocalDateTime donate_time;
    private Byte isdel;

    private String order_no;
}
